Avoid GLM assertion failure in viewer.cpp

fix #6