No more error

Fixed earlier issue with access violation