fixing sprite issue