Bug fix on +init function