when i run this line:
msf> beef_target -c 0
i got this error:
[-] Error while running command beef_target: can't convert String into Integer

i've been modifing the source code and i've fixed the error, this is the final output

this is the pice of code that i've modified at beef.rb (located at /usr/share/metasploit-framework/plugins/beef.rb in kali)

i'm using this:
- metasploit v4.8.2-2014010801 [core:4.8 api:1.0]
- Browser Exploitation Framework (BeEF) 0.4.4.5-alpha