fix is inside bug