Fixed error when loaded with composer