fixed bug in the variable widht