Fixed error with code