select query reset fix