On the CI I get a lot of build failures saying that #width was send tonil. Thus I added a nil check to reduce the trouble.