fixed error in removing marker