fix two distribution related bugs

fixes
 * #WEBINTERFACE-427
 * #WEBINTERFACE-428