Fixed bug with packaging on release build