Fix spinner loading bug