fixed last line of bugs