Fixed check in issue when not using ajax.