temporary fix for setting width and height