Solved minor errors