Fixed issue: Y-ccordinate might be reversed.