fixed bounds error