Fixed bug in video memory class