possible fix on the wierd layout problems