directive error fixed