fixed problem with width/height functions