fix issues mentioned in the PR

https://github.com/milkypostman/melpa/pull/1744