fixed problems with release and build states