Fixed logical error that caused the build to fail