small fixes as suggested by c9.io editor