Fixed bug calculating obj height