Bugfix for securing branch