fixed when location ischecked