fixed #1015
small fix