fixed pl_sql issue with trigger