Fixes bug in dynamic implementation