Stupid calc() bug