Fixed several bugs in the Spinner and ListView