made changes as specified in Redmine Bug #7139

https://dev.metasploit.com/redmine/issues/7139