Fix the grammatical problems in the given sentence.
Last night, it came out from a box when I took out a tool from a box for cleaning my bathroom.
Last night, came out from a box when I took out a tool from a box for cleaning my bathroom.