fixes a problem with guard. see http://stackoverflow.com/questions/13170077/why-is-guard-stopping