Bug/switch percentage width#324

fixes #324