Fix double-equals issue in callback return