Fixed bug aplo 355

I fixed the bug https://issues.apache.org/jira/browse/APLO-355