Fixed Bug Found by Adam thanks to Jolyon