fixed major layout bug