fixed razor errors