improving interval methods in GUI object
fixing buffer overflow