fixed out of bounds clicking