fix surface dialog closing up when typing in the texture box