fixed 2 bugs with bonus code