Code error resolved