Fixed error during instantiation