#299 fix derective style

Fix behaviour of directive style