Fix a bug in projection