Fixed some problems on DrawBufferObjects function