fixing floor initialization