fixed problem found by @Joshpbarron