Fixed release build bug