fixed equation error