fixed 3 issues. Running on fuerte

I had a couple issues running this on fuerte. 
fixed them