tiny bugfix with scalar projection