Fixed bug in style validation