fix normal matrix calculations