Fixed bugs and condition check if coordinate is there.