Fixed small error, thanks to tests