fix for getting width