protect against nil project in callback