fix drawing due to incorrect matrix accessing (just one point was being drawn)