Fixed bug in drawing (x>=0 and y>=0 was not tested => possible SEGFAULT)