fixed bug with resetting start and end date upon execution of trigger