slate: fixes #35, thanks @Airborn