Fix setting of coords