Fix for release function