Fixed bug in prices
Added error handling to listener