Bug fix on the trigger used