Fixed a multiple directive bug