maths script bugs sorted