Fixed bug in normal calculations