solved bug when creating BoxShape with borderwidth 0