Weird numbers when using getBounds

whenever i use the getBounds function the values that are retrieved are sometimes correct and sometimes add around 6710702 to the value, anyone else had any problems like this??

thank you