Fixes #3143 Fixed modules last instruction