Fixed bug with height reading