fixing some error