resolved issue 248 - fixed broken search function