fixed bug if an objective returns nil