fixed delete-on-build bug