Fixed coding problem